//
//  MLWBaseViewController.h
//  KITCHEN_STORIES
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 MLW. All rights reserved.
//

#import <UIKit/UIKit.h>
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
#define ScreenHeight [UIScreen mainScreen].bounds.size.height

#define MAS_SHORTHAND // 1.对于约束参数可以省去 "mas_"
#define MAS_SHORTHAND_GLOBALS // 2.对于默认的约束参数自动装箱
#import "Masonry.h" // 3.宏必须添加在头文件前面

// 引入网络请求工具
#import "MLWNetTool.h"

// 引入归档工具
#import "LTArchiver.h"


#import <AFNetworking.h>



#import <MBProgressHUD.h>




// 视频页面接口宏定义
// 滚动视图接口
#define SCROLL_IMAGE @"http://121.41.103.24/public/get124Homedata.shtml"

// 详细页宏定义 pageId 为页面id(网上厨房)
#define DETAIL_URL(pageId) [NSString stringWithFormat:@"http://www.ecook.cn/ecook/viewContent.shtml?id=%@", pageId]

//MyMenu第二列表页(网上厨房)
#define MYMENUDETAIL_URL [NSString stringWithFormat:@"http://121.41.103.24/public/getContentsBySubClassid.shtml"]

#define MYMENU_BODY(urlId, pageId) [NSString stringWithFormat:@"device=iPhone%%206%%20%%28A1549/A1586%%29&id=%@&machine=O92c64d75d09e22890712c6d37388a6487d276c9e&page=%d&version=12.4.1.1", urlId, pageId]


// 图片链接 拼接id
#define IMAGE_URL(imgId) [NSString stringWithFormat:@"http://pic.ecook.cn/web/%@.jpg", imgId]

// 视频页面接口
#define TIPS_VIDEO @"http://121.41.103.24/public/getRecommendContentsByType.shtml?device=iPhone%206%20%28A1549/A1586%29&id=&machine=O92c64d75d09e22890712c6d37388a6487d276c9e&type=video_recipe&version=12.4.1.1"


// 爱掌厨 链接
#define ICOOKING_URL @"http://api.izhangchu.com/?appVersion=4.4&sysVersion=9.3.2&devModel=iPhone"

// 爱掌厨 视频页面 请求体
#define ICOOKING_VIDEO_BODY(page) [NSString stringWithFormat:@"methodName=SceneDishes&page=%@&scene_id=51&size=20&token=84A97F4B26EAF26D53EE2559A572EC6A&user_id=1533147&version=4.4", page]

// 爱掌厨 视频详细页 请求体 做法
#define ICOOKING_VIDEO_DETAIL_HOW_BODY(dishes_id) [NSString stringWithFormat:@"dishes_id=%ld&methodName=DishesView&token=84A97F4B26EAF26D53EE2559A572EC6A&user_id=1533147&version=4.4", dishes_id]

// 爱掌厨 视频详细页 请求体 食材
#define ICOOKING_VIDEO_DETAIL_FOOD_BODY(dishes_id) [NSString stringWithFormat:@"dishes_id=%ld&methodName=DishesMaterial&token=84A97F4B26EAF26D53EE2559A572EC6A&user_id=1533147&version=4.4", dishes_id]

// 爱掌厨 视频详细页 请求体 相关知识
#define ICOOKING_VIDEO_DETAIL_KNOWLEDGE_BODY(dishes_id) [NSString stringWithFormat:@"dishes_id=%ld&methodName=DishesCommensense&token=84A97F4B26EAF26D53EE2559A572EC6A&user_id=1533147&version=4.4", dishes_id]

// 爱掌厨 视频详细页 请求体 相宜相克
#define ICOOKING_VIDEO_DETAIL_OTHER_BODY(dishes_id) [NSString stringWithFormat:@"dishes_id=%ld&methodName=DishesSuitable&token=84A97F4B26EAF26D53EE2559A572EC6A&user_id=1533147&version=4.4", dishes_id]


@interface MLWBaseViewController : UIViewController




// 如果宏定义了BLACK 执行 夜间模式
#ifdef BLACK

    #define Yellow_Color [UIColor colorWithRed:0.99 green:0.75 blue:0.18 alpha:1.00];

    #define Text_Color [UIColor colorWithRed:0.04 green:0.04 blue:0.04 alpha:1.00];

    // 模块间的分割线 粗
    #define Gray_Line_Bold [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1.00];

    // 模块间的分割线 细
    #define Gray_Line_thin [UIColor colorWithRed:0.83 green:0.83 blue:0.83 alpha:1.00];


#endif
// BLACK 执行结束


// 如果没有宏定义 BLACK 执行 日间模式
#ifndef BLACK

    #define Yellow_Color [UIColor colorWithRed:0.99 green:0.75 blue:0.18 alpha:1.00];

    #define Text_Color [UIColor colorWithRed:0.04 green:0.04 blue:0.04 alpha:1.00];

    // 模块间的分割线 粗
    #define Gray_Line_Bold [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1.00];

    // 模块间的分割线 细
    #define Gray_Line_thin [UIColor colorWithRed:0.83 green:0.83 blue:0.83 alpha:1.00];

#endif



@end
